home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
wcron198.zip
/
warpcron.cfg
< prev
next >
Wrap
Text File
|
1997-08-12
|
14KB
|
325 lines
#
# D O N ' T P A N I C !
#
# ;-)
#
#
# WarpCron.cfg for WarpCron version 1.98
#
# Date: 12 August 1997
#
# New features will be marked with a 'NEW'
#
# Here you have to configure your events.
# Everything with a '#' as first char or after a value is a comment.
#
# Every value MUST end with a ';' !!!
#
# An event starts with the keyword EVENT and ends (who knows
# it...) with an END; . After the EVENT follows the name of the event.
# Keywords between this both keys are:
#
# NOTE:
# =====
# To make your brain clearer see examples later this document :-)
#
# Program c:\demo.cmd;
# path and name of program to start, .cmd is ok
# NEW WarpCron uses 4os2 if present. That means if
# COMSPEC points to your 4os2.exe WarpCron will use it.
# And .btm-file are treatet like .cmd-files then; so just
# write a "program something.btm" and WarpCron will do the
# rest ;-)
# !no default!
# Parameters param1 param2 .. paramX;
# parameters for the program
# default: none
# Type w;
# f / w / p / d / D / k
# f = fullscreen, w = window, p = pm
# d = DOS window, D = DOS fullscreen
# k = KillEvent (kills another event)
#
# ! NOTE ! You have to set "StartRelated" to "true" in order
# to use the "k" function! See later this doc and example 7.
#
# default: w
# Time 12:34;
# time to run in hour:minutes format
# default: 00:00
# Date 20.03.1997;
# date to start in day.month.year format
# default: none -> run it every day
# RunEveryXMin 10;
# default: 0 = disabled
# run this event every X minutes...
# RunEveryXHour ...or hours...
# RunEveryXDay ...or days...
# RunEveryXMon ...or months.
#
# DoNotRunFrom 02:00;
# default: disabled
# Don't run this event from this time...
# DoNotRunUntil 05:30;
# ...until this time.
#
# SemPath e:\ipc\test;
# path and name to a semaphore. When this file exist WarpCron
# will start the event and delete the file (!).
# default: none
# SemDelay 10;
# wait x minutes after found the semaphore before starting event
# default: 0
# DenyPath e:\ipc\dontrun;
# do not run this event when this file exists
# default: none
# Unmissable true;
# If you shutdown WarpCron a while and this event's time passes
# WarpCron will "forget" this event.
# But if you write a "true" here WarpCron will check at startup
# if this event is missed and starts it then.
# The unmissable events are saved in the file warpcron.mis .
# Please don't edit this file.
# RunAtStartup true;
# if this is true, WarpCron will start this event at startup.
# Otherwise just leave it away ;-) or set it false.
# RunAtEnd true;
# if this is true, WarpCron will start this event at program end.
# CAUTION!
# These to keywords ignore the DoNotRunFrom, DoNotRunUntil and
# DenyPath!
#
# Log true;
# false if you do not want to remark this event in the logfile
# default: true -> write it to logfile
# Min true;
# set "min" to true if you want that warpcron starts programs
# minimized. Otherwise just don't write it.
# SU false;
# false if you want to lock one of these days for this event,
# otherwise just leave it away :-)
# SA < default for all days: true -> start it on every day >
# MO
# TU
# WE
# TH
# FR
#
# You DO NOT HAVE to specify every keyword!
# Just write the keys you need!
# And DO NOT FORGET: every value MUST end with a ';'!
# See examples later this file.
#
# logic:
# if you specifiy more than one RunEveryX..., then
# RunEveryXMinhas priority over RunEveryXHour over RunEveryXDay
# over RunEveryXMon.
#
# hints:
# - yes, leap years are ok ;-)
# - the default for weekdays is TRUE, so you don't have to specify
# every weekday for every event like in WarpCron 1.21/1.23
# - WarpCron starts every program out of the program's directory,
# this means that WarpCron extracts the directory out of your
# PROGRAM-Statement and changes into it before starting the program.
# Some programs need this.
# - if you want to start an event just on semaphore, leave the TIME and
# DATE-statement away (see example)
# - The DoNotRun... statements are just for events with a RunEveryXMin
# or RunEveryXHour! They DO NOT influence semaphores or event with just
# a single time statement.
#
# W A R N I N G !
#
# !!! WarpCron deletes a semaphore after starting the event !!!
#
#
REG <code>; # if you send me a postcard, then
# I'll you send a little code via email.
# Then the "will I get a postcard..."
# will change.
Editor tedit.exe; # The editor for changing warpcron.cfg
# directly via key 'c'.
# This is quit a fast hack and seems to
# run with textmode editors only!
# If you really need a PM editor...
# write me and I will see what I can do ;-).
# LogPath e:\logs; # if you want to specify a special path
# for the logfile
# LogFile e:\logs\myWcronLog.log; # use this if you want to use a special
# name for the logfile, too.
# Normally just for special reasons. :-)
# PIDPath e:\ipc; # path for the pid-file that contains the
# process id.
# MissPath e:\ipc; # path for the warpcron.mis file where
# WarpCron stores the unmissable events.
CheckConfig; # WarpCron will check its config file
# every second if it's changed.
# If so, it will reread it.
# CfgReadSem e:\buffer\read_now; # WarpCron will reread its config if
# the semaphore e:\buffer\read_now
# exists.
# EndSem e:\buffer\end_wcron; # WarpCron ends when this semaphore is there
SignTime 1; # WarpCron writes every SIGNTIME hour
# an hello to logfile
# StartRelated true; # start programs as child process of warpcron.
# With this keyword enabled warpcron will start
# every program as a child. This is needed if
# you want to kill events with the event type "k".
# Be warned! With this keyword enabled every program
# started by warpcron and being active will be
# terminated if warpcron ends!
# I suggest to enable this keyword only if you want to
# use the "kill event" feature.
# Colors for the text and background.
# Default is lightgray on black.
# For background:
# 0 = black 1 = blue
# 2 = green 3 = cyan
# 4 = red 5 = magenta
# 6 = brown 7 = lightgray
# For textcolor same as above and:
# 8 = darkgray 9 = lightblue
#10 = lightgreen 11 = lightcyan
#12 = lightred 13 = lightmagenta
#14 = yellow 15 = white
# TextColor 7 # default Textcolor
# BackColor 1 # Background
# InfoColor 14 # Information
# WarnColor 12 # Warnings
# NEW
# LargeScreen true; # forces WarpCron to run in 50-lines mode
# SmallScreen true; # forces WarpCron to run in 25-lines mode
# NEW
# # EmailSupport: WarpCron sends you an email...
# emailOnEnd true; # at end of program
# emailOnTrap true; # if an error occurs
# emailOnStart true; # on start of program
# emailLog true; # the log of the day
# emailTo you@somewhere.com; # to who?
# emailFrom WarpCron@your.host.name; # from whom?
#
# NOTE!
# You have to setup your sendmail system before using this feature!
# WarpCron uses "sendmail.exe -af <file> -t"
#
# example 1, running every 42 minutes, but not on thursday, not between 20:00
# and 05:00, it is unmissable and WarpCron will NOT write this event to the
# logfile
Event ex1; # Event-Block start with name of event
Program e:\vp\out\test.cmd;# Program with path, *.CMD is ok!
Parameters e:\config.sys; # Parameters for the program
Type f; # w = window
# f = fullscreen
# p = pm
Time 12:09; # first time to start
# WarpCron will calculate the
# RUNEVERYXMIN from this time up to
# the actual time
RunEveryXMin 42; # run every 42 minutes, >59 is ok!
DoNotRunFrom 20:00; # don't run it between 20:00...
DoNotRunUntil 05:00; # ...and 05:00.
unmissable true;
LOG false; # do not write to logfile
TH false; # do not run on thursday
End;
# example 2, running every 42 days, but not on monday and saturday,
# beginning at the 20 Jan. 1997. It runs NOT if the file e:\ipc\dontrun
# exists. It will run at startup and end of WarpCron.
Event ex2;
Program cmd.exe;
Parameters ;
Type w; # window
Time 01:15; # at 01:15
Date 20.01.1997; # from this date every 42 days
RunEveryXDay 42; # up to the next valid date
DenyPath e:\ipc\dontrun # don't run if this file exists
MO false; # but not on monday and
SA false; # saturday
RunAtStartup true; # WarpCron runs it at startup and
RunAtEnd true; # at end of WarpCron.
End;
# example 3, running every 2 months, every weekday,
# beginning at the 24 Aug. 1996
Event ex3;
Program c:\something.cmd;
Type w; # run as window
Time 01:15;
Date 24.08.1996; # from this date every 3 months
RunEveryXMon 3;
End;
# example 4, running every day at 3 o'clock or 15 minutes after the
# semaphore 'c:\test' appears.
Event ex4;
Program c:\something.cmd;
Parameters ;
Type f;
Time 03:00; # start at 3 o'clock OR
SemPath c:\test; # watch this semaphore...
SemDelay 15; # ...and run 15 minutes after it appears
End;
# example 5, running every day and every two hours
#
Event DOS command;
Program command.com; # start DOS-Command.com
# with no parameters
Type D; # as a fullscreen session
# write 'd' for dos-window
Time 14:04; # first time to start at 12 o'clock
RunEveryXHour 2; # every two hours
End;
# example 6, running an event just on semaphore, not on time or date
# but not if e:\ipc\dontrun exists
Event ex6;
Program c:\somepath\donnow.exe; # note: there's no time-statement
Type f; # but an semaphore-statement
SemPath c:\ipc\donnow.sem; # so WarpCron will start the
# event just on semaphore
DenyPath e:\ipc\dontrun; # but not if this file exists.
end;
# example 7, a kill event. This event kills program "donnow.exe" from example 6
# if it is active.
# Example 6 starts "donnow.exe", and example 7 kills it at 14:25 or on a semaphore.
Event Kill event 6;
type k; # type "k" = kill event
params ex6; # event name to kill as parameter
time 14:25; # time, date etc. like in any other event
sempath c:\ipc\killit
end;
#
# If you have problems, ideas, bugs or critics: email me!
#
# email : jbuss@wiloyee.shnet.org
# fido : Julian Buss@2:240/5210
# fax : ++49-4103-91 92 55
# BBS : 55 (V34)
# 54 (ISDN)
#
#
# Eof